import { sequelize } from '../../db';
import { DataTypes, Model } from 'sequelize';
class AfterSale extends Model { }

AfterSale.init({
    StoreItemId: DataTypes.INTEGER,
    CustomizeId: DataTypes.INTEGER,
    UserId: DataTypes.INTEGER,
    toUserId: DataTypes.INTEGER,
    problem: DataTypes.STRING,
    resolve: DataTypes.STRING,
    preTime: DataTypes.STRING,
    finish: {
        type: DataTypes.BOOLEAN,
        defaultValue: false
    }
}, {
    sequelize
});

export default AfterSale